/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石仲夏
 * Date: 2025-07-03
 * Time: 21:15
 */
public class Text {
    public static void main(String[] args) {
        int sum=0;
        for (int i = 1; i <=5 ; i++) {
            int ret=1;
            for (int j=1;j<=i;j++){
                ret*=j;
            }
            sum+=ret;
        }
        System.out.println(sum);
    }
    public static void main6(String[] args) {
        int j=1;
        int sum=0;
        while (j<=5){
            int ret=1;
            int i=1;
            while(i<=j){
                ret*=i;
                i++;
            }
            sum+=ret;
            j++;
        }
        System.out.println(sum);
    }
    public static void main5(String[] args) {
        int a=10;
        switch(a){
            case 1:
                break;
            case 2:
                break;
            default:
                System.out.println("haha");
                break;
        }
    }
    public static void main4(String[] args) {
        int a=400;
        if(a%400==0||(a%100!=0&&a%4==0)){
            System.out.println("闰年");
        }
        else {
            System.out.println("平年");
        }
    }
    public static void main3(String[] args) {
        int a=-1;
        System.out.println(a>>>1);
    }
    public static void main2(String[] args) {
        int a=11;
        System.out.println(a<<1);  //11*2^1==22
        System.out.println(a>>1);  //11/2^1==5
    }
}
